﻿using static System.Console;

HashSet<int> hs = new HashSet<int>();
hs.Add(1);
hs.Add(2);
hs.Add(3);
hs.Add(10);
foreach (var item in hs)
{
    WriteLine(item);
}

hs.Contains(1);
hs.Count();

double avgValue = hs.Average();
WriteLine(avgValue);

WriteLine(hs.Sum());


ReadLine();